from django.urls import path, include
from device.views import DeviceViewSet, DeviceCreateViewSet
from rest_framework import routers

router = routers.SimpleRouter()
router.register(r'device', DeviceViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('generateDevice/', DeviceCreateViewSet.as_view()),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
